package com.ylink.lkx;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 *  默认的静态资源的路径是：
 *  	classpath:[/META-INF/resources/,/resources/,/static/,/public/]
 * @author kangx
 *
 */
@ServletComponentScan
@SpringBootApplication
public class Springboot1Application {
	Logger log = LoggerFactory.getLogger(Springboot1Application.class);

	public static void main(String[] args) {
		SpringApplication.run(Springboot1Application.class, args);
	/*
	 * spring boot 如何处理静态资源
	 * src/main/webapp目录下
	 * 默认的静态资源的路径是：classpath:[/META-INF/resources/,/resources/,/static/,/public/]
	 * 可以通过spring.resources.staticLocations配置项配置静态资源默认路径
	 * 
	 * springboot 使用servlet api：@WebServlet，@WebFilter。@WebListener
	 * 编写serlvet ，然后加入相应的注解
	 * 需要启用@ServletComponentScan注解，扫描到spring容器中
	 */
	}
}
